import Vue from 'vue';
import App from './App';
import store from './store/'
import { router } from './router';
import VueLazyload from 'vue-lazyload'
import placeholder from './assets/img/yugesheji.png'
import * as filters from './filters'

Vue.use(VueLazyload, {
  error: placeholder,
  loading: placeholder,
})

//注册全局filter方法
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

new Vue({
  router,
  store,
  el: '#app',
  render: h => h(App)
});
